package map.android.baidu.carpool.data.impl;

import android.content.Context;
import map.android.baidu.carpool.WebConfig;
import map.android.baidu.carpool.data.CarpoolBaseData;
import map.android.baidu.carpool.response.CarerCommentResponse;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by zhangtongyu on 15/3/25.
 * user模块获取我的评价列表接口request
 */
public class CustomerCommentListData extends CarpoolBaseData<CarerCommentResponse>{

    public String bduss;
    public int type;

    public CustomerCommentListData(Context context) {
        super(context);
    }

    public void setBduss(String bduss) {
        this.bduss = bduss;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Override
    protected String getUrl() {
        return WebConfig.getUrl(WebConfig.URL_ID_USER_COMMENT_LIST);
    }

    @Override
    protected Map<String, String> getParams() {

        Map<String , String> params = new HashMap<String, String>();
        params.put("bduss" , bduss);
        params.put("type" , String.valueOf(type));

        return params;
    }
}
